a9757fa53eb69dac005e8505224e601eec335f6d,ast/src/main/java/net/hamnaberg/json/Json.java,Json,jObject,#Map.Entry#Map.Entry#,106
Before Change
@SafeVarargs
public static JObject jObject(Map.Entry<String, JValue> first, Map.Entry<String, JValue>... list) {
LinkedHashMap<String, JValue> map = new LinkedHashMap<>(list.length + 1);
map.put(first.getKey(), first.getValue());
for (Map.Entry<String, JValue> entry : list) {
map.put(entry.getKey(), entry.getValue());
}
After Change
@SafeVarargs
public static JObject jObject(Entry<String, JValue> first, Entry<String, JValue>... list) {
return new JObject(LinkedHashMap.of(first.getKey(), first.getValue()).merge(LinkedHashMap.ofEntries(list)));
}
@SafeVarargs